package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户对象 tourism_user
 *
 * @author gqd
 * @date 2020-12-26
 */
public class TourismUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Integer id;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickName;

    /** 手机号 */
    @Excel(name = "手机号")
    private String userPhone;

    /** 用户头像 */
    @Excel(name = "用户头像")
    private String userPhoto;

    /** 性别 */
    @Excel(name = "性别")
    private String userSex;

    /** openid */
    private String tourismId;

    /** sessionKey */
    private String sessionKey;

    private Integer code;

    private String token;

    public void setId(Integer id)
    {
        this.id = id;
    }

    public Integer getId()
    {
        return id;
    }
    public void setNickName(String nickName)
    {
        this.nickName = nickName;
    }

    public String getNickName()
    {
        return nickName;
    }
    public void setUserPhone(String userPhone)
    {
        this.userPhone = userPhone;
    }

    public String getUserPhone()
    {
        return userPhone;
    }
    public void setUserPhoto(String userPhoto)
    {
        this.userPhoto = userPhoto;
    }

    public String getUserPhoto()
    {
        return userPhoto;
    }
    public void setUserSex(String userSex)
    {
        this.userSex = userSex;
    }

    public String getUserSex()
    {
        return userSex;
    }
    public void setTourismId(String tourismId)
    {
        this.tourismId = tourismId;
    }

    public String getTourismId()
    {
        return tourismId;
    }

    public String getSessionKey() {
        return sessionKey;
    }

    public void setSessionKey(String sessionKey) {
        this.sessionKey = sessionKey;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("nickName", getNickName())
            .append("userPhone", getUserPhone())
            .append("userPhoto", getUserPhoto())
            .append("userSex", getUserSex())
            .append("tourismId", getTourismId())
            .append("sessionKeys", getSessionKey())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
